xentrace: Mark data_size __read_mostly because it's only written once
authorOlaf Hering <olaf@aepfle.de>
Mon, 9 May 2011 08:59:13 +0000 (09:59 +0100)
committerOlaf Hering <olaf@aepfle.de>
Mon, 9 May 2011 08:59:13 +0000 (09:59 +0100)
Signed-off-by: Olaf Hering <olaf@aepfle.de>
xen/common/trace.c

index 572d1c814ed5a03a2f69ed6efee0d0ae114a9be5..9c2250e168fda116874a33672a34d3eee9e30742 100644 (file)
@@ -54,7 +54,7 @@ static unsigned int t_info_pages;
 static DEFINE_PER_CPU_READ_MOSTLY(struct t_buf *, t_bufs);
 static DEFINE_PER_CPU_READ_MOSTLY(unsigned char *, t_data);
 static DEFINE_PER_CPU_READ_MOSTLY(spinlock_t, t_lock);
-static u32 data_size;
+static u32 data_size __read_mostly;
 
 /* High water mark for trace buffers; */
 /* Send virtual interrupt when buffer level reaches this point */